﻿#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

//main07：练习：三只小猪
int main07(void)
{
	int a, b, c;
	printf("1.请输入三只小猪的体重，按回车键结束：");
	scanf("%d %d %d", &a, &b, &c);//20 19 49
	if (a > b)
	{
		if (a > c)
		{
			printf("2.小猪a最重为：%d\n", a);
		}
		else {
			printf("3.小猪c最重为：%d\n", c);
		}
	}
	else {
		if (b > c)
		{
			printf("4.小猪b最重为：%d\n", b);
		}
		else {
			printf("3.小猪c最重为：%d\n", c);//3.小猪c最重为：49
		}
	}

	return 0;
}